package com.fenghongzhang.kotlin1903.mvp.contract

import com.fenghongzhang.kotlin1903.model.Data
import com.fenghongzhang.kotlin1903.model.Food
import com.fenghongzhang.kotlin1903.mvp.model.IModel
import com.fenghongzhang.kotlin1903.mvp.view.IView
import io.reactivex.Observer

/**
 * 约束类
 */
interface FoodContract {

    interface IFoodView : IView {
        fun initAdapter(food: MutableList<Data>)
    }

    interface IFoodModel : IModel {
        fun getFoodData(observer: Observer<Food>)
    }
}